// import {
// 	userInfo
// } from "@/pages/api/lifeCycle/user.js"

const state = {
	exhibitor_token: '',
	exhibitor_info: {
		avatar: '',
		name: ' '
	}
}

const actions = {
	loadUserInfo({
		commit
	}) {
		// userInfo().then(data => {
		// 	commit('setUserInfo', data.data);
		// })
		commit('setUserInfo', 123);
	}
}

const mutations = {
	userToken(state, token) {
		state.exhibitor_token = token;
	},
	setUserInfo(state, data) {
		state.exhibitor_info = data;
	}
}

const getters = {
	getUserInfo(state) {
		return state.exhibitor_info;
	}
}

export default {
	state,
	actions,
	mutations,
	getters,
	namespaced: true,
};